#include "msgdlg.h"
#include "ui_msgdlg.h"

MsgDlg::MsgDlg(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::MsgDlg)
{
    ui->setupUi(this);
    ui->label_msg->setStyleSheet("background-color: #ffee80");

}

MsgDlg::~MsgDlg()
{
    delete ui;
}

void MsgDlg::setMsg(const QString& title, const QString& msg)
{
    setWindowTitle(title);
    ui->label_msg->setText(msg);
}
